package com.guide.dao;

import java.util.List;

import com.guide.domain.Message;



public interface MessageDao  {
	

	public int insertMessage(Message message);
	
	public List<Message> getMessageByPage(Long userId,Integer pageIndex,Integer pageSize);
	
	public int  counrMessageByUserId(Long userId);
	
	public List<Message> getMessageSysByPage(Integer msgType,Integer pageIndex,Integer pageSize);
	
	public int  countMessageSysByUserId(Integer msgType);
	
	public Message getMessageById(Long messageId);
	
	public void markRead(Message massage);
	
	public Integer getUnreadLetterCount(Long userId,Integer status);
 }
